<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>资讯详情</title>
    <link rel="stylesheet" type="text/css" href="./css/api.css" />
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="./css/style.css" />
    <script type="text/javascript" src="./script/api.js"></script>
    <script type="text/javascript" src="./script/aui-tab.js"></script>
    <link rel="stylesheet" type="text/css" href="./css/aui-slide.css" />
    <script type="text/javascript" src="./script/aui-slide.js"></script>
        <script type="text/javascript" src="./script/base.js"></script>
    <script type="text/javascript">
        function closeWin() {
            api.closeWin({});
        };
    </script>
</head>

<body>

    <div id='title'>
    </div>
    <div id='update_time'>
    </div>

    <div >
      <img id="img" >
    </div>

    <div class="news-detail-t" id='list'>
        <h3></h3>
        <!-- 2017年8月23日 -->
    </div>
    <div class="news-detail" id='description'>
    </div>
</body>

<script type="text/javascript">
    // 8月统计
    function my_fund_bill() {
        var delay = 0;
        if (api.systemType != 'ios') {
            // delay = 300;
        }
    };

    apiready = function() {
        var n = api.pageParam.id;
        fnGetNewData(n);
    };

    function fnGetNewData(n) {

      api.showProgress({
          style: 'default',
          animationType: 'fade',
          title: '努力加载中...',
          text: '先喝杯茶...',
          modal: false
      });

        api.ajax({
            url: 'http://www.big-wealth.com/index.php?ctl=app_article&act=article_content',
            method: 'post',
            data: {
                values: {
                    id: n
                },
            }
        }, function(ret, err) {
            if (ret) {
                upDataNew(ret);
                api.hideProgress();
            }
        });
    }

    function upDataNew(data) {
  var newData = data.content;
    newData = newData.replace(/.\/public\/attachment/g,'http://www.big-wealth.com/public/attachment');
    // alert(newData);

        document.getElementById("title").innerHTML = data.title;
        document.getElementById("update_time").innerHTML = data.update_time;
        document.getElementById("list").innerHTML = newData;
        document.getElementById("description").innerHTML = data.description;
        if (data.icon == false) {

        } else {
            var img = webAddress + data.icon;
            document.getElementById("img").src = img;
        }

    }
</script>

</html>
